<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="posix.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.posix.html">POSIX 函数</a></div>
 <div class="up"><a href="book.posix.html">POSIX</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="posix.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.posix-f-ok">
    <strong><code>POSIX_F_OK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Check whether the file exists.
    </span>
   </dd>

  
  
   <dt id="constant.posix-r-ok">
    <strong><code>POSIX_R_OK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Check whether the file exists and has read permissions.
    </span>
   </dd>

  
  
   <dt id="constant.posix-w-ok">
    <strong><code>POSIX_W_OK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Check whether the file exists and has write permissions.
    </span>
   </dd>

  
  
   <dt id="constant.posix-x-ok">
    <strong><code>POSIX_X_OK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Check whether the file exists and has execute permissions.
    </span>
   </dd>

  
  
   <dt id="constant.posix-s-ifblk">
    <strong><code>POSIX_S_IFBLK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Block special file
    </span>
   </dd>

  
  
   <dt id="constant.posix-s-ifchr">
    <strong><code>POSIX_S_IFCHR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Character special file
    </span>
   </dd>

  
  
   <dt id="constant.posix-s-ififo">
    <strong><code>POSIX_S_IFIFO</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     FIFO (named pipe) special file
    </span>
   </dd>

  
  
   <dt id="constant.posix-s-ifreg">
    <strong><code>POSIX_S_IFREG</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Normal file
    </span>
   </dd>

  
  
   <dt id="constant.posix-s-ifsock">
    <strong><code>POSIX_S_IFSOCK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Socket
    </span>
   </dd>

  
 </dl>

 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
   These constants are available since PHP 5.1.0. Please also note that some
   of them may not be available in your system.
  </p>
 </p></blockquote>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="posix.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.posix.html">POSIX 函数</a></div>
 <div class="up"><a href="book.posix.html">POSIX</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
